<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" isELIgnored="false" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<head>
    <jsp:include page="/WEB-INF/jsp/include/head.jsp"/>
</head>
<body>

<ol class="breadcrumb">
    <li><strong>当前位置： </strong>标准化管理</li>
    <li class="active">专家信息</li>
</ol>



<div class="nav-tabs-custom">
    <ul class="nav nav-tabs">
        <li class="active">
            <a  href="#tab_expertBase" data-toggle="tab">
                <span class="glyphicon glyphicon-user"></span><b>基本信息</b></a></li>
        <li>
            <a href="#tab_expertCompany" data-toggle="tab">
                <span class="glyphicon glyphicon-home"></span><b>工作单位</b></a></li>
        <li>
            <a href="#tab_expertCertificate" data-toggle="tab">
                <span class="glyphicon glyphicon-book"></span><b>资质证书</b></a></li>
        <li>
            <a href="#tab_expertEducation" data-toggle="tab">
                <span class="glyphicon glyphicon-pencil"></span><b>教育经历</b></a></li>
        <li>
            <a href="#tab_expertMajor" data-toggle="tab">
                <span class="glyphicon glyphicon-th-list"></span><b>从事专业</b></a></li>
        <li>
            <a href="#tab_expertReview" data-toggle="tab">
                <span class="glyphicon glyphicon-align-justify"></span><b>审查/评审 经历</b></a></li>
        <li>
            <a href="#tab_expertTrain" data-toggle="tab">
                <span class="glyphicon glyphicon-briefcase"></span><b>培训经历</b></a></li>
        <li>
            <a href="#tab_expertWork" data-toggle="tab">
                <span class="glyphicon glyphicon-plane"></span><b>工作经历</b></a></li>
    </ul>
    <div class="tab-content" >
        <%--1基本信息--%>
        <div class="tab-pane active" id="tab_expertBase" data-url="expertInfo/expertEdit/expertBase/index"></div>
        <%--2工作单位--%>
        <div class="tab-pane" id="tab_expertCompany" data-url="expertInfo/expertEdit/expertCompany/index"></div>
        <%--3资质证书--%>
        <div class="tab-pane" id="tab_expertCertificate" data-url="expertInfo/expertEdit/expertCertificate/index"></div>
        <%--4教育经历--%>
        <div class="tab-pane" id="tab_expertEducation" data-url="expertInfo/expertEdit/expertEducation/index"></div>
        <%--5从事专业--%>
        <div class="tab-pane" id="tab_expertMajor"  data-url="expertInfo/expertEdit/expertMajor/index"></div>
        <%--6审查/评审经历--%>
        <div class="tab-pane" id="tab_expertReview" data-url="expertInfo/expertEdit/expertReview/index"></div>
        <%--7培训经历--%>
        <div class="tab-pane" id="tab_expertTrain"  data-url="expertInfo/expertEdit/expertTrain/index"></div>
        <%--8工作经历--%>
        <div class="tab-pane" id="tab_expertWork"  data-url="expertInfo/expertEdit/expertWork/index"></div>
    </div>
</div>

<div class="modal fade" id="modal_ajax">
    <div class="modal-dialog  modal-mid ">
        <div class="modal-content ">
        </div><!-- /.modal-content -->
    </div><!-- /.modal-dialog -->
</div><!-- /.modal -->

<jsp:include page="/WEB-INF/jsp/include/footer.jsp"/>
<script language="javascript">
    $(".nav-tabs a").click(function () {
        var $content = $($(this).attr("href"));
        if ($content.html().length < 1) {
            $content.html("<div style='text-align: center'><div class='loadImage32' style='margin:0 auto'></div></div>");
            $content.load($content.data("url"));
        }
    });

    function  refreshTab($obj){
        $obj.html("<div style='text-align: center'><div class='loadImage32' style='margin:0 auto'></div></div>");
        $obj.load($obj.data("url"));
    }

    $(".nav-tabs a").first().click();

    $.sysPlugin.clearModalRemoveData("modal_ajax");

    var deleteSuccessTitle='您的删除申请已提交到管理员！正在等待审核。';
    var updateSuccessTitle='您的修改申请已提交到管理员！正在等待审核。';
    var insertSuccessTitle='您的添加申请已提交到管理员！正在等待审核。';

    window.events = {
        'click .update_expertCertificate': function (e, value, row, index) {
            $('#modal_ajax').modal({
                backdrop: 'static',
                keyboard: false,
                show: true,
                remote: 'expertInfo/expertEdit/expertCertificate/editDlg?id='+row.id
            });
        },

        'click .delete_expertCertificate': function (e, value, row, index) {
            $.sysPlugin.superAjax({
                data: {id:row.id},
                url: 'expertInfo/expertEdit/expertCertificate/delete',
                operateType: 'delete',
                showSuccessAlert: true,
                showWarnAlert: true,
                successTitle:deleteSuccessTitle,
                successCall: function (data) {
                    refreshTab($("#tab_expertCertificate"));
                }
            })
        },
        'click .cancel_expertCertificate': function (e, value, row, index) {
            $.sysPlugin.superAjax({
                data: {id:row.id},
                url: 'expertInfo/expertEdit/expertCertificate/cancelApply',
                operateType: '撤销申请',
                showSuccessAlert: true,
                showWarnAlert: true,
                successCall: function (data) {
                    refreshTab($("#tab_expertCertificate"));
                }
            })
        },

        'click .update_expertTrain': function (e, value, row, index) {
            $('#modal_ajax').modal({
                backdrop: 'static',
                keyboard: false,
                show: true,
                remote: 'expertInfo/expertEdit/expertTrain/editDlg?id='+row.id
            });
        },
        'click .delete_expertTrain': function (e, value, row, index) {
            $.sysPlugin.superAjax({
                data: {id:row.id},
                url: 'expertInfo/expertEdit/expertTrain/delete',
                operateType: 'delete',
                showSuccessAlert: true,
                showWarnAlert: true,
                successTitle:deleteSuccessTitle,
                successCall: function (data) {
                    refreshTab($("#tab_expertTrain"));
                }
            })
        },
        'click .cancel_expertTrain': function (e, value, row, index) {
            $.sysPlugin.superAjax({
                data: {id:row.id},
                url: 'expertInfo/expertEdit/expertTrain/cancelApply',
                operateType: '撤销申请',
                showSuccessAlert: true,
                showWarnAlert: true,
                successCall: function (data) {
                    refreshTab($("#tab_expertTrain"));
                }
            })
        },
        'click .update_expertWork': function (e, value, row, index) {
            $('#modal_ajax').modal({
                backdrop: 'static',
                keyboard: false,
                show: true,
                remote: 'expertInfo/expertEdit/expertWork/editDlg?id='+row.id
            });
        },
        'click .delete_expertWork': function (e, value, row, index) {
            $.sysPlugin.superAjax({
                data: {id:row.id},
                url: 'expertInfo/expertEdit/expertWork/delete',
                operateType: 'delete',
                showSuccessAlert: true,
                showWarnAlert: true,
                successTitle:deleteSuccessTitle,
                successCall: function (data) {
                    refreshTab($("#tab_expertWork"));
                }
            })
        },
        'click .cancel_expertWork': function (e, value, row, index) {
            $.sysPlugin.superAjax({
                data: {id:row.id},
                url: 'expertInfo/expertEdit/expertWork/cancelApply',
                operateType: '撤销申请',
                showSuccessAlert: true,
                showWarnAlert: true,
                successCall: function (data) {
                    refreshTab($("#tab_expertWork"));
                }
            })
        },
        'click .update_expertEducation': function (e, value, row, index) {
            $('#modal_ajax').modal({
                backdrop: 'static',
                keyboard: false,
                show: true,
                remote: 'expertInfo/expertEdit/expertEducation/editDlg?id='+row.id
            });
        },
        'click .delete_expertEducation': function (e, value, row, index) {
            $.sysPlugin.superAjax({
                data: {id:row.id},
                url: 'expertInfo/expertEdit/expertEducation/delete',
                operateType: 'delete',
                showSuccessAlert: true,
                showWarnAlert: true,
                successTitle:deleteSuccessTitle,
                successCall: function (data) {
                    refreshTab($("#tab_expertEducation"));
                }
            })
        },
        'click .cancel_expertEducation': function (e, value, row, index) {
            $.sysPlugin.superAjax({
                data: {id:row.id},
                url: 'expertInfo/expertEdit/expertEducation/cancelApply',
                operateType: '撤销申请',
                showSuccessAlert: true,
                showWarnAlert: true,
                successCall: function (data) {
                    refreshTab($("#tab_expertEducation"));
                }
            })
        },
        'click .update_expertReview': function (e, value, row, index) {
            $('#modal_ajax').modal({
                backdrop: 'static',
                keyboard: false,
                show: true,
                remote: 'expertInfo/expertEdit/expertReview/editDlg?id='+row.id
            });
        },
        'click .delete_expertReview': function (e, value, row, index) {
            $.sysPlugin.superAjax({
                data: {id:row.id},
                url: 'expertInfo/expertEdit/expertReview/delete',
                operateType: 'delete',
                showSuccessAlert: true,
                showWarnAlert: true,
                successTitle:deleteSuccessTitle,
                successCall: function () {
                    refreshTab($("#tab_expertReview"));
                }
            })
        },
        'click .cancel_expertReview': function (e, value, row, index) {
            $.sysPlugin.superAjax({
                data: {id:row.id},
                url: 'expertInfo/expertEdit/expertReview/cancelApply',
                operateType: '撤销申请',
                showSuccessAlert: true,
                showWarnAlert: true,
                successCall: function (data) {
                    refreshTab($("#tab_expertReview"));
                }
            })
        }

    };
</script>

</body>